#ifndef QOPENHARMONYPLAYERSERVICE_H
#define QOPENHARMONYPLAYERSERVICE_H

#include "qmediaservice.h"

QT_BEGIN_NAMESPACE

class QOpenHarmonyPlayerControl;
class QOpenHarmonyWindowControl;

class QOpenHarmonyPlayerService : public QMediaService
{
    Q_OBJECT
public:
    QOpenHarmonyPlayerService(QObject *parent = nullptr);
    ~QOpenHarmonyPlayerService() override;

    QMediaControl *requestControl(const char *name) override;
    void releaseControl(QMediaControl *control) override;

private:
    QOpenHarmonyPlayerControl *m_playerControl = nullptr;
    QOpenHarmonyWindowControl *m_videoWindowControl = nullptr;
};

QT_END_NAMESPACE

#endif
